package scau.erps.view.freemarket;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

import scau.erps.view.business.staff.MaterialPanel;

/**
 * 自由市场主界面
 * @author outsider
 *
 */
public class MarketBoardDiaglog extends JDialog{
	private static final long serialVersionUID = 1L;
	public MarketBoardDiaglog(){
		this.setTitle("自由市场");
		this.setSize(1024, 720);
		this.setResizable(false);
		this.setLocationRelativeTo(null);
		this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
		JPanel contentPanel = new JPanel();
		JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);	
		tabbedPane.setPreferredSize(new Dimension(950,700));
		MaterialMarketPanel material = new MaterialMarketPanel();	
        ProductMarketPanel product= new ProductMarketPanel();
        ResearchMarketPanel research = new ResearchMarketPanel();
		tabbedPane.add(material,"原材料市场");
		tabbedPane.add(product,"成品市场");
		tabbedPane.add(research,"技术市场");		
		contentPanel.add(tabbedPane, BorderLayout.CENTER);
		this.setContentPane(contentPanel);
		this.setModal(true);
		this.setVisible(true);
	}
}
